//
//  RegulateOptionsCell.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/25.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "RegulateOptionsCell.h"

@implementation RegulateOptionsCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _view = [UIView new];
        [self.contentView addSubview:_view];
        
        _label = [[UILabel alloc] init];
        [_view addSubview:_label];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    _view.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
    _label.frame = CGRectMake(2, 2, _view.frame.size.width-4 , _view.frame.size.height-4);
    _label.center = self.contentView.center;
    _label.textAlignment = 1;
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
